/*
 * @(#)MtmCalendarUserUserActor.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.calendar.bean;

import com.dcivision.framework.bean.AbstractBaseObject;

/**
  MtmCalendarUserUserActor.java

  This class is the serializable bean reflecting business logic uses.

    @author           Tony Chen
    @company          DCIVision Limited
    @creation date    05/12/2003
    @version          $Revision: 1.5 $
*/

public class MtmCalendarUserUserActor extends AbstractBaseObject {

  public static final String REVISION = "$Revision: 1.5 $";

  static final long serialVersionUID = -504602964467009477L;

  private Integer userRecordID = null;
  private String actorType = null;
  private Integer actorID = null;

  //add by Tony
  public static final String ACTOR_TYPE_USER = "U";
  public static final String ACTOR_TYPE_GROUP = "G";
  public static final String ACTOR_TYPE_ROLE = "R";



  public MtmCalendarUserUserActor() {
    super();
  }

  public Integer getUserRecordID() {
    return(this.userRecordID);
  }

  public void setUserRecordID(Integer userRecordID) {
    this.userRecordID = userRecordID;
  }

  public String getActorType() {
    return(this.actorType);
  }

  public void setActorType(String actorType) {
    this.actorType = actorType;
  }

  public Integer getActorID() {
    return(this.actorID);
  }

  public void setActorID(Integer actorID) {
    this.actorID = actorID;
  }

  //-----------------------add by tony-----------------------
  public String toString() {
      return(this.getClass().getName() + "[id:" + toString(id) + "|userRecordID:" + toString(userRecordID) + "|actorType:" + toString(actorType) + "|actorID:" + toString(actorID) + "|creatorID:" + toString(creatorID) + "|createDate:" + toString(createDate) + "|updaterID:" + toString(updaterID) + "|updateDate:" + toString(updateDate) + "|creatorName:" + toString(creatorName) + "|updaterName:" + toString(updaterName) + "]");
  }

  public Object clone() {
      MtmCalendarUserUserActor obj = new MtmCalendarUserUserActor();
      obj.setID(this.getID());
      obj.setUserRecordID(this.getUserRecordID());
      obj.setActorType(this.getActorType());
      obj.setActorID(this.getActorID());
      obj.setCreatorID(this.getCreatorID());
      obj.setCreateDate(this.getCreateDate());
      obj.setUpdaterID(this.getUpdaterID());
      obj.setUpdateDate(this.getUpdateDate());
      obj.setCreatorName(this.getCreatorName());
      obj.setUpdaterName(this.getUpdaterName());
      return(obj);
  }

  public boolean equals(Object obj) {
      return(obj != null && obj.getClass().getName().equals(this.getClass().getName()) && ((AbstractBaseObject)obj).getID() != null && ((AbstractBaseObject)obj).getID().equals(this.getID()));
  }



}
